package io.renren.modules.medical.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天消息关系实体
 * @author Luo Sheng
 * @school YiBin university
 * @create 2023-03-29 23:03
 */
@Data
@TableName("web_socket_inter")
public class WebSocketInterEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long id; // 主键
    @TableField("message")
    private String message; // 发送消息
    @TableField("send_id")
    private Long sendId; // 发送者id
    @TableField("send_to_id")
    private Long sendToId; // 接收者id
    @TableField("send_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date sendTime; // 发送时间
    @TableField("is_visited")
    private Integer isVisited; // 是否被观看
}
